<template>
  <div class="car-navbar">
    <div>购物车({{ getListLength }})</div>
  </div>
</template>

<script>
import { mapGetters } from "vuex";
export default {
  computed: {
    ...mapGetters(["getListLength"]),
  },
};
</script>

<style scoped>
.car-navbar {
  height: 44px;
  background-color: var(--color-high-text);
  text-align: center;
  line-height: 44px;
  color: #fff;
}
</style>